<?php

/**
 * FootballFactory, Copyright Robin Loop & Pascal Wirz, 2014
 * ---
 * Template zum Editieren eines Teams
 *
 * @author Robin
 */

require('templates/header.php');
?>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <!-- JQuery -->
        <script src="../js/jquery-1.8.3.min.js"></script>
        <script src="../js/jquery-ui-1.9.2.custom.min.js"></script>
        
        <!-- JS -->
        <script src="../js/admin_menu.js"></script>
        
        <!-- CSS -->
        <link href="../css/admin.css" rel="stylesheet">
        <link href="../css/smoothness/jquery-ui-1.9.2.custom.css" rel="stylesheet">
        
    </head>

    <body>
        
        <?php include 'menu.php'; ?>
        
        <div>
            <h1>Team editieren: <?php echo $team->getName(); ?></h1>
                
            <div>
                <form action="team.php?action=save" method="post">
                    <input type="hidden" name="team_id" value="<?php echo $team->getId() ?>"/>
                    <ul>
                        <li>
                            <label for="season_name">Name</label>
                            <input type="text" name="team_name" placeholder="Teamname" required autofocus maxlength="255" value="<?php echo htmlspecialchars($team->getName()) ?>" />
                        </li>
                    </ul>
                    <div class="buttons">
                        <input type="submit" name="saveChanges" value="speichern" />
                        <input type="submit" formnovalidate name="cancel" value="abbrechen" />
                  </div>
                </form>
            </div>
        </div>
    
    </body>
</html>